package com.ztao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.heima.model.common.apArticle.dto.ArticleHomeDto;
import com.heima.model.common.apArticle.pojos.ApArticle;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface ArticleMapper extends BaseMapper<ApArticle> {
     List<ApArticle> loadArticleList(@Param("dto") ArticleHomeDto dto,
                                     @Param("type") Integer type);


     public List<ApArticle> findArticleListByLast5days(@Param("dayParam") Date dayParam);
}
